
package com.abcijkxyz.controller.gtvg;

import java.util.Calendar;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.abcijkxyz.domain.gtvg.User;

@Controller
@RequestMapping(value = "/")
public class HomeController implements IGTVGController {

	public String process(final HttpServletRequest request, final HttpServletResponse response, Model model) throws Exception {
		request.getSession(true).setAttribute("user", new User("John", "Apricot", "Antarctica", null));
		model.addAttribute("today", Calendar.getInstance());

		return "home";
	}

}
